﻿<div ng-controller="merchantController">
	<div class="wrapper border-bottom white-bg page-heading">
		<div class="col-lg-pull-12">
			<ol class="breadcrumb">
				<li><a href="javascript:void(0)" ng-click="goBack()">商户</a></li>
				<li class="active">级别</li>
			</ol>
		</div>
	</div>
	<div class="row ui-box">
		<div class="col-md-8">
			<a class="btn btn-primary btn-sm" ui-sref="app.merchant.grade_detail({merchant_no:model.merchant_no})"><i class="fa fa-plus"></i> 添加</a>
		</div>
		<div class="col-md-4">
		</div>
	</div>
	<table class="table table-hover m-t-md">
		<thead>
			<tr style="background-color: #f7f7f9;">
				<th>名称</th>
				<th>编号</th>
				<th>排序(大级高)</th>
				<th width="130">操作</th>
			</tr>
		</thead>
		<tbody>
			<tr ng-repeat="item in grades">
				<td>{{item.name}}</td>
				<td>{{item.grade_no}}</td>
				<td>{{item.sort}}</td>
				<td>
					<a class="btn btn-primary btn-xs" ui-sref="app.merchant.grade_detail({merchant_no:model.merchant_no,id:item.id})"><i class="fa fa-cog"></i> 编辑</a>
					<button class="btn btn-primary btn-xs" ng-click="remove(item)"><i class="fa fa-trash"></i> 删除</button>
				</td>
			</tr>
		</tbody>
	</table>
</div>